

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>源代码</title>
    <link rel="stylesheet" href="../css/yuandaima.css">
    <style>
    </style>
</head>

<body>
    <div class="test-named-color">测试有名颜色</div>
    <div class="test-rgb">
        测试rgb颜色
    </div>
    <div class="test-sixteen">
        测试十六进制
    </div>
    <div class="test-hsl">
        测试hsl颜色
    </div>
    <div class="test-hsla">
        测试hsla颜色
    </div>
    <div class="test-opacity">
        测试不透明度
    </div>
<hr>
这是关键源码
<pre>
    div {
        color: rgb(109, 179, 19);
        width: 200px;
        height: 100px;
        border: 15px red dashed;
        margin-bottom: 5px;
    }
    .test-named-color {
        background-color: aquamarine;
    } 
    .test-rgb{
        background-color:rgb(113, 131, 90) ;
    }
    .test-sixteen{
        background-color: #331089;
    }
    .test-hsl{

        background-color:hsl(150,30%,60%) ;
    }
    .test-hsla{
         background-color:hsla(86, 40%, 20%, 40%) ;
    }
    .test-opacity{
        background-color: rgba(255,0,0,1);
    }
    .test-opacity:hover{
        background-color: rgba(255,0,0,0.3);
    }
</pre>
</body>

</html>